@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400&display=swap");
body {
  -webkit-text-size-adjust: 100%; /* Para navegadores antiguos */
  text-size-adjust: 100%;
}

html body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  width: 100%;
}
/* Global box-sizing to prevent overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown {
  position: relative;
}

header {
  width: 100%;
  background-color: #f9f8f6;
  color: #f9f8f6;
  padding: 25px 20px;
  size: 20cm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 10;
}

.logo_1 {
  font-family: "Dancing Script", cursive;
  font-weight: 400;
  font-size: 27px;
  line-height: normal;
  letter-spacing: 0%;
  color: #000000;
  opacity: 1;
  text-align: left;
  margin: 0;
  padding: 0;
}

.logo_2 {
  font-family: "Raleway";
  font-weight: 400;
  font-size: 17px;
  line-height: normal;
  letter-spacing: 0%;
  color: #000000;
  opacity: 1;
  margin: 0;
  padding: 0;
  position: relative; /* CAMBIO: Eliminado position absolute */
  left: 0; /* CAMBIO: Reseteado left */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 80px;
}

nav a {
  text-decoration: none;
  font-family: "Dancing Script";
  font-weight: 140;
  font-size: 30px;
  white-space: nowrap;
  line-height: 42px;
  letter-spacing: 0%;
  color: #000000;
  padding: 0%;
}

.hero {
  background-image: url("home.jpg"); /* Fondo con la sala y margaritas */
  background-size: cover; /* Ajusta el tamaño para que no cubra todo, solo se vea bien */
  background-position: center; /* Centra el fondo */
  background-repeat: no-repeat; /* Evita repetición */
  padding: 50px 20px; /* Espacio para el contenido */
  position: relative; /* Para controlar la superposición */
  text-align: center;
  min-height: 500px; /* Asegura suficiente espacio para ver el fondo */
  margin: 0;
  width: 100vw;
  left: 0;
}
/* capa blanca translúcida sobre el fondo de .hero para suavizarlo */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.199);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2; /* Sobre la capa de opacidad y fondo */
}

.hero-image {
  width: 300px; /* Ajusta el tamaño según tu maqueta */
  height: auto;
  border-radius: 20px; /* Bordes redondeados como en la imagen */
  position: relative; /* Centrado sobre el fondo */
  z-index: 3; /* Sobre todo lo demás */
  margin-bottom: 10px; /* Espacio debajo de la imagen */
  top: 120px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.first_part {
  padding: 50px 20px; /* Espacio para el contenido */
  position: relative; /* Para controlar la superposición */
  text-align: center;
  color: #f9f8f6;
  width: 100vw;
  margin: 0;
  left: 0;
}
.presentation-content {
  max-width: 2000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  color: #f9f8f6;
}
.get-started {
  background-color: #414d43;
  color: rgb(220, 220, 220);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  margin: 2%;
}
.dancing-typing {
  font-family: "Dancing Script", cursive;
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  letter-spacing: 0%;
  color: #000000;
  opacity: 1;
  margin: 1%;
  padding: 10;
}
.raleway-typing {
  font-family: "Raleway";
  font-weight: 400;
  margin-top: 5%;
  font-size: 20px;
  line-height: 30px;
  position: relative;
  line-height: normal;
  letter-spacing: 0%;
  color: black;
  opacity: 1;
  margin: 1%;
  padding: 10;
}
.dropdown-services-list {
  align-items: center;
  margin-left: 0;
}
.services-part {
  background-color: #526255;
  padding: 50px 15px;
  position: relative;
  height: auto;
  width: 100vw;
  margin: 0;
  left: 0;
}
.services-content {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #526255;
  margin: 0 auto;
  box-sizing: border-box;
  color: white;
  gap: 5%;
}
.text-services {
  text-align: center;
  position: relative;
  font-weight: 400;
  font-family: "Raleway";
  margin: 0 auto;
  color: white;
  font-size: x-large;
}
.dropdown-link {
  display: inline-block;
  color: white;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 4px;
}
.dropdown-content {
  background: #526255;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}
/* Servicios: imagen derecha, texto izquierda, alineados como misión */
.service-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 65%;
  margin: 0 auto;
  gap: 0;

  
}
.services-part{
  align-items: center;
}
.service-imag-div {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.service-text-div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.services-img {
  width: 65%;
  height: auto;
  border-radius: 12px;
  margin-left: 0;
  margin-bottom: 0;
  object-fit: cover;
  display: block;
}
.mobile-services-heading{
  display:none;
}
@media (max-width: 768px) {
  .service-content {
    display: grid;
    max-width: 100%;
    align-items: left; 
  }
    .dropdown-link.text-services {
    display: grid;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-size: small;
    
  }
  .dropdown-link{
    text-align: left;
    margin-left: 0;   /* Puedes cambiar 10vw por el valor que prefieras */
    margin-right: 10vw;
    padding-right: 100%;

  }
  .dropdown-services-list {
  align-items: center;
  margin-left: 10%;
 }
 
  .services-img {
    display: none;
  }
  .dekstop-services-heading{
    display: none;

  }
  .mobile-services-heading{
  display:grid;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-section {
    margin: 10px 0;
  }
}

.third_part {
  background-color: #a8c7a8; /* Fondo verde oscuro */
  padding: 50px 20px;
  position: relative;
  width: 100vw;
  margin: 0;
  left: 0;
}

.mission-content {
  max-width: 100%; /* Ancho máximo para centrar */
  width: 100%;
  margin: 0 auto; /* Centra el contenedor */
  display: flex; /* Diseño de dos columnas */
  align-items: center; /* Alinea verticalmente */
  gap: 2%; /* Espacio entre imagen y texto */
  box-sizing: border-box;
}

.mission-image {
  flex: 1; /* Ocupa la mitad del espacio */
  overflow: hidden; /* Evita que la imagen se desborde */
}

.mission-img {
  width: 80%; /* Imagen ocupa todo el ancho del contenedor */
  height: auto; /* Mantiene la proporción */
  display: block; /* Elimina espacios adicionales */
  margin: 5%;
  border-radius: 12px;
}
.houses-img {
  width: 100%;
  height: auto;
  display: block;
}

.mission-text {
  flex: 1; /* Ocupa la otra mitad */
  background-color: #a8c7a8; /* Fondo verde claro como en la maqueta */
  padding: 20px; /* Espacio interno */
  border-radius: 5px; /* Bordes suaves */
  text-align: left; /* Alineación del texto */
  color: #333; /* Color del texto */
}

.mission-text h2 {
  font-size: 1.8em; /* Tamaño del título */
  color: white;
  size: 50px;
  position: relative;
  text-align: center;
  top: 20px;
  margin: 1%;
  margin-bottom: 16px;
}

.how-help-text {
  color: white;
  size: 30px;
  font-family: "Dancing Script";
  position: relative;
  margin: 5%;
}

.mission-text p {
  font-size: 1em; /* Tamaño del párrafo */
  margin-bottom: 15px; /* Espacio debajo del párrafo */
}

.clients-section {
  background-image: url("clients-backg.png"); /* Fondo */
  background-size: cover; /* Ajusta el tamaño para que no cubra todo, solo se vea bien */
  background-position: center; /* Centra el fondo */
  background-repeat: no-repeat; /* Evita repetición */
  padding: 50px 20px; /* Espacio para el contenido */
  position: relative; /* Para controlar la superposición */
  text-align: center;
  min-height: 200px; /* Asegura suficiente espacio para ver el fondo */
  align-items: center;
  width: 100vw;
  margin: 0;
  left: 0;
}

.clients-container {
  display: flex;
  justify-content: center; /* Centra las imágenes */
  align-items: center; /* Alinea verticalmente */
  z-index: 1; /* Debajo del texto */
  max-width: 1100px; /* Limita el ancho total */
  margin: 0 auto; /* Centra el contenedor */
  align-items: center;
}

.client-image {
  flex: 0 0 auto; /* No crece ni se encoge */
  position: relative;
  overflow: hidden; /* Contiene la imagen */
}

.client-img {
  width: 45%; /* Tamaño uniforme para ambas imágenes */
  height: auto;
  margin: 3%;
  border-radius: 3px; /* Bordes suaves */
  transition: opacity 0.3s ease; /* Transición suave */
  position: relative;

  align-items: center;
}

.clients-text {
  position: absolute;
  top: 20px; /* Ajustamos la posición vertical */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: black;
  font-family: "Dancing Script", cursive;
  font-size: 1.6em; /* Reducimos el tamaño del texto */
  z-index: 2;
}

.clients-text h2 {
  margin: 0; /* Elimina márgenes por defecto */
}

.finl-seccion {
  display: flex;
  justify-content: center; /* Centra las imágenes */
  align-items: center; /* Alinea verticalmente */
  background-color: #c0c2b1;
  position: relative;
  z-index: 1; /* Debajo del texto */

  margin: 0 auto; /* Centra el contenedor */
  width: 100vw;
  left: 0;
}

footer {
  background-color: #526255;
  color: white;
  text-align: center;
  padding: 20px;
  font-family: " Raleway";
  width: 100vw;
  margin: 0;
  left: 0;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin: 10px;
  font-size:xx-small;
}

.footer-section h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  border-bottom: 1px solid #ecf0f1;
  padding-bottom: 5px;
}

.footer-section p,
.footer-section ul {
  margin: 5px 0;
  line-height: 1.5;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #3498db;
}

.footer-section .legal-notice {
  font-size: 0.8em; /* Reduce el tamaño de la fuente para la parte legal */
  line-height: 1.3;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
  margin-top: 20px;
}

.footer-bottom .social-links a {
  color: #ecf0f1;
  margin: 0 10px;
  text-decoration: none;
}

.footer-bottom .social-links a:hover {
  color: #3498db;
}



.menu-toggle {
  display: none;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
}
.main-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  color: #000;
  margin-top: 10%;
}
.description {

  background-color: #d8f0c8;
  padding: 20px;
  margin: 0 auto;
  max-width: 75%;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
}

.form-section {
  background-color: #4b5b4e;
  padding: 20px;
  margin: 20px auto;
  max-width: 75%;
  color: #fff;
  text-align: center;
  font-size: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.form-input {
  background-color: #fff;
  border: none;
  padding: 20px;
  margin-bottom: 16px;
  width: 70%;
  margin: 10px auto;
  display: block;
  height: 50px;
  align-self: center;
}
.calculate-btn {
  background-color: #fff;
  border: none;
  color:#000;
  padding: 10px 20px;
  font-family: cursive, serif;
  font-size: 14px;
  cursor: pointer;
  margin: 20px auto;
  display: block;
}
.results-section {
  background-color: #d3d3d3;
  padding: 20px;
  margin: 0 auto;
  max-width: 100%;
  font-size: 16px;
  text-align: center;
}
.results-title {
  font-size: 18px;
  margin-bottom: 20px;
}
.results-text {
  line-height: 1.5;
}
.help-btn {
  position: relative;
  background-color: #d6e5c4;
  color: black;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  z-index: 1;
  margin: 1%;
}
.help-btn:hover {
  background-color: #d3d3d3;
}
.help-btn[data-tooltip]:hover:after {
  content: attr(data-tooltip);
  position: relative;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  font-size: 12px;
}

.input-group {
  display: flex;
  align-items: center;
  width: 80%;
  max-width: 500px;
  margin: 0 auto 15px;
  position: relative;
}
.form-control {
  flex: 1;
  margin-right: 10px;
}

.form-container h1 {
  font-size: 1.3em;
  margin-bottom: 12px;
  color: #526255;
  text-align: center;
}

.form-container input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

select {
  width: 50%;
  min-width: 180px;
  max-width: 300px;
  margin: 0 auto 16px auto;
  display: block;
}
form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

form input,
form select {
  margin-bottom: 16px;
}

.form-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.text-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #fff;
  width: 100vw;
  margin: 0;
  left: 0;
}

.animated-text {
  max-width: 800px;
  margin: 0 auto;
}

.animated-text h2 {
  font-size: 2.5em;
  color: #1a2a44;
  animation: slideIn 0.8s ease-out;
}

.animated-text p {
  font-size: 1.2em;
  color: #666;
  animation: fadeIn 0.8s ease-out 0.2s; /* Delay of 0.2s */
}
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.contact-section {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 10%;
}
.form_contact{
  max-width: 50%;
  align-items: center;
  padding: 40px,20px;
  margin: 0 auto;
  margin-bottom: 5%;
}

.contact-section h2 {
  color: #1a2a44;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #666;
}


.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  border-radius: 5px;
  cursor: pointer;
  width: 20%;
  align-self: center;
}

.submit-btn:hover {
  background-color: #d6e5c4;
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .form_contact{
  max-width: 75%;
  align-items: center;
  padding: 40px,20px;
  margin: 0 auto;
  margin-bottom: 2%;
}
.contact-section {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20%;
}
  .submit-btn {
    border-radius: 5px;
    cursor: pointer;
    width: 20%;
    align-self: center;
  }

  .submit-btn:hover {
    background-color: #d6e5c4;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav {
    display: none; /* Oculto por defecto, lo muestra el JS */
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: #fff;
    z-index: 1000;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav.active {
    display: block;
  }
  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
  }
  .mobile-nav ul li {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
  }
}
@media (min-width: 1025px) {
  .main-nav {
    display: block;
  }
  .mobile-nav,
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 600px) {
  .form-container {
    padding: 12px;
    max-width: 95vw;
  }
}

@media (max-width: 768px) {
  .hero {
    background-size: cover; /* En móviles, puede cubrir más si es necesario */
    padding: 0 auto;
    min-height: 400px;
    margin: 0%;
    background-color: #a8c7a8;
  }
  .hero-image {
    width: 50%; /* Reduce tamaño en móviles */
  }
  nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
  }
}

/* Responsive: Para pantallas pequeñas (como móvil) */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  .client-img {
    width: 250px;
  }
  .clients-container {
    flex-direction: column;
  }
  .get-started {
    position: relative;
  }
  .mission-text h2 {
    position: relative;
    text-align: center;
  }
  .mission-text h2,
  .how-help-text {
    font-size: 1.2em;
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .raleway-typing {
    font-size: medium;
  }
  .dancing-typing {
    font-size: medium;
  }
  .mission-content {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .mission-image,
  .mission-text {
    width: 75%;
    margin: 0;
    padding: 0;
  }
  .main-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  color: #000;
  margin-top: 17%;

}
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 5px; /* CAMBIO: Añadido gap para espacio entre logos */
  flex-wrap: wrap;
  width: 100%;
}

/* Media query para tablets y móviles */
@media screen and (max-width: 1023px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo_1, .logo_2 {
        font-size: 1.2em;
    }

    /* Full width para todas las secciones principales */
    .hero, .first_part, .services-part, .third_part, .clients-section, .finl-seccion, .text-section, footer {
        width: 100vw;
        margin: 0;
        left: 0;
        position: relative;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-content, .presentation-content, .service-content, .services-content, .mission-content, .clients-container, .footer-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .services-img, .mission-img, .client-img, .houses-img {
        width: 100%;
        margin: 0;
    }

    .text-services, .mission-text {
        text-align: center;
        width: 100%;
    }

    .hero-image {
        width: 250px;
        top: 80px;
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #fff;
        z-index: 1000;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .mobile-nav ul li {
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    .client-img {
    width: 250px;
  }
}

/* Estilos para .houses-section */
.houses-section {
  background-color: #c0c2b1; /* Fondo similar al de la imagen, ajusta si es necesario */
  padding: 50px 20px;
  position: relative;
  text-align: center;
  width: 100vw;
  margin: 0;
  left: 0;
}

.houses-container {
  max-width: 100%;
  margin: 0 auto;
}

.houses-img {
  width: 100%;
  height: auto;
  display: block;
}